package com.lxy.demo.service;

import com.lxy.demo.dao.UserDao;
import com.lxy.demo.entity.UserEntity;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * 业务层
 * @Author menglanyingfei
 */

@Service
public class UserService {
    @Resource
    private UserDao userDao;

    public List<UserEntity> queryUserList() {
        return userDao.getAll();
    }
}
